home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11070 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  862 b 

  1. Path: mayne.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to make it BEEP ?
  5. Date: 21 Mar 1996 12:23:08 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4isdrcINNsq6@mayne.ugrad.cs.ubc.ca>
  8. References: <4inmv1$ljj@sunburst.ccs.yorku.ca> <4is9tf$8o3@spanky.pls.ov.com>
  9. NNTP-Posting-Host: mayne.ugrad.cs.ubc.ca
  10.  
  11. In article <4is9tf$8o3@spanky.pls.ov.com>,
  12. Fletcher.Glenn@ov.com <glenn@ov.com> wrote:
  13.  
  14.  >Almost all terminals and terminal emulations will cause a beep if you
  15.  >send the "bell" code (control G).  This is ASCII code '\007'.
  16.  >
  17.  >Try:
  18.  >
  19.  >    putc('\007', stdout);
  20.  >    fflush(stdout);
  21.  >
  22.  >            Fletcher.Glenn@ov.com
  23.  
  24. No need to make that ascii specific. The C standard gives you a symbolic code
  25. for the alert character.
  26.  
  27.     putchar('\a');
  28. -- 
  29.  
  30.